﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DOAN.DLL;
using DOAN.Public;

namespace DOAN.BLL
{
    public class HopDongBLL
    {
        HopDongDAL _hopDong;

        public HopDongBLL()
        {
            _hopDong = new HopDongDAL();
        }

        public DataTable Load()
        {
            return _hopDong.Load();
        }

        public int Insert(HopDongPublic p)
        {

            return _hopDong.Insert(p);
        }

        public int Update(HopDongPublic p)
        {
            return _hopDong.Update(p);
        }

        public int Delete(HopDongPublic p)
        {
            return _hopDong.Delete(p);
        }

        public DataTable Load_MaKH(KhachHangPublic p)
        {
            return _hopDong.Load_MaKH(p);
        }
    }
}
